package com.yiwei.hdb.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by xsooy-pc on 2017/8/29.
 */

public class RepayStatusDialogModel extends ResponseModel implements Parcelable {


    /**
     * is_alerts : 1
     * order_status : 0
     * data : {"notice_id":973,"order_money":"580.00","notice_sn":"RB2017091711181066954"}
     * explain : ["1. 是否支付成功已审核结果为准，请稍后留意审核短信和APP通知；","2. 工作时间（9:00-22:00）内提交的付款订单10分钟内完成审核，非工作时间提交的付款订单次日9:00前完成审核；","3. 如有疑问请咨询客服电话 13827260730 "]
     */


    public DataBean data;


    public static class DataBean implements Parcelable {
        /**
         * notice_id : 973
         * order_money : 580.00
         * notice_sn : RB2017091711181066954
         */
        public ArrayList<String> explain;
        public String notice_id;
        public String order_money;
        public String notice_sn;
        public int is_repay;//1还款 2充值
        public int is_alerts;
        public int order_status;


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeStringList(this.explain);
            dest.writeString(this.notice_id);
            dest.writeString(this.order_money);
            dest.writeString(this.notice_sn);
            dest.writeInt(this.is_repay);
            dest.writeInt(this.is_alerts);
            dest.writeInt(this.order_status);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.explain = in.createStringArrayList();
            this.notice_id = in.readString();
            this.order_money = in.readString();
            this.notice_sn = in.readString();
            this.is_repay = in.readInt();
            this.is_alerts = in.readInt();
            this.order_status = in.readInt();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.data, flags);
    }

    public RepayStatusDialogModel() {
    }

    protected RepayStatusDialogModel(Parcel in) {
        this.data = in.readParcelable(DataBean.class.getClassLoader());
    }

    public static final Creator<RepayStatusDialogModel> CREATOR = new Creator<RepayStatusDialogModel>() {
        @Override
        public RepayStatusDialogModel createFromParcel(Parcel source) {
            return new RepayStatusDialogModel(source);
        }

        @Override
        public RepayStatusDialogModel[] newArray(int size) {
            return new RepayStatusDialogModel[size];
        }
    };
}
